-
Notifications
You must be signed in to change notification settings - Fork 621
Fix Publish page not prepopulated with latest published version metadata #4806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Publish page not prepopulated with latest published version metadata #4806
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
|
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @MananTank and the rest of your teammates on |
aa5abc0 to
38b0081
Compare
38b0081 to
cd592e6
Compare
cd592e6 to
5de6961
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4806 +/- ##
=======================================
Coverage 49.13% 49.13%
=======================================
Files 1051 1051
Lines 56681 56681
Branches 3889 3889
=======================================
Hits 27850 27850
Misses 28198 28198
Partials 633 633
*This pull request uses carry forward flags. Click here to find out more. |
size-limit report 📦
|
Merge activity
|
…ata (#4806) ## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on enhancing the `PublishContractPage` by adding logic to handle cases where published contract metadata lacks a version. It fetches existing contracts associated with a publisher and merges their data with the fetched metadata. ### Detailed summary - Imported `getPublishedContractsWithPublisherMapping` utility. - Renamed variable `publishMetadata` to `publishMetadataFromUri`. - Added logic to check if `publishMetadataFromUri` lacks a version. - Fetched existing published contracts for the publisher. - Merged existing contract data with `publishMetadataFromUri` if applicable. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
5de6961 to
3e8c074
Compare

Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR enhances the
PublishContractPageby introducing logic to handle scenarios where contract metadata lacks a version. It fetches published contracts and merges their data with the fetched metadata to ensure the latest version is used.Detailed summary
getPublishedContractsWithPublisherMapping.publishMetadatatopublishMetadataFromUri.publishMetadataFromUri.